package com.radar.controller;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import java.util.concurrent.ExecutorService;

@Component
public class Runner implements ApplicationRunner {

    private ExecutorService poll = null;

    @Override
    public void run(ApplicationArguments args) {

        // init 实况线程
//        poll = Executors.newFixedThreadPool(2);;
//        Thread thread = new Thread(new CappiTFRunnable());
//        thread.setPriority(Thread.NORM_PRIORITY);
//        poll.execute(thread);
//
//        Thread thread1 = new Thread(new CappiTFRunnable());
//        thread1.setPriority(Thread.NORM_PRIORITY);
//        poll.execute(thread1);
//
//        Thread thread2 = new Thread(new CappiRunnable());
//        thread2.setPriority(Thread.NORM_PRIORITY);
//        poll.execute(thread2);

    }

}
